package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.model.db.Extra;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ExtraMapper extends BaseMapper<Extra> {


    //查询维度,按字段排序
    @Select("select * from tb_extra where reportId=#{reportId} order by keyOne desc")
    List<Extra> findByReportIdSortKeyOne(Integer reportId);

}
